package com.huawei.appmarket.service.appdetail.view.card;

import android.os.Bundle;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.huawei.appgallery.jsonkit.api.JsonBean;
import com.huawei.appmarket.service.appdetail.bean.detail.DetailEditorRecommendBean;
import java.util.List;
import o.azb;
import o.drl;
import o.ewm.h;
import o.ewm.j;

public class DetailEditorRecommendCard extends drl {
    private TextView ʽ;

    public View ˊ(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
        this.ˊ = layoutInflater.inflate(h.ˋˋ, null);
        azb.ˏ(this.ˊ);
        this.ʽ = (TextView) this.ˊ.findViewById(j.ॱꜝ);
        return this.ˊ;
    }

    public boolean ˊ(List<JsonBean> list) {
        if (list == null || list.size() <= 0) {
            return false;
        }
        DetailEditorRecommendBean detailEditorRecommendBean = (DetailEditorRecommendBean) list.get(0);
        if (detailEditorRecommendBean == null) {
            return false;
        }
        CharSequence ॱ = detailEditorRecommendBean.ॱ();
        if (TextUtils.isEmpty(ॱ)) {
            return false;
        }
        this.ʽ.setText(ॱ);
        return true;
    }
}
